package com.litchi.model;

import com.litchi.enums.OperType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * @Author: Jiangxx
 * @Date: 2023/10/20
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UpdateMessage extends BaseOperationMessage {


    private static final long serialVersionUID = -5124500528219276305L;

    /**
     * 操作类型(I-插入 U-更新 D-删除)
     */
    private OperType operType = OperType.U;

    /**
     * 更新后列值信息
     */
    private Map<String, Object> after;

    /**
     * 更新前列值信息
     */
    private Map<String, Object> before;
}
